.card-item-empty.mt20 {
  margin-top: 20px;
}
.risk-overview {
  &.danger {
    .risk-overview-detail-left > .aisc-widgets {
      background: #ffeded !important;
    }
    .risk-overview-info::after {
      background: $primary-danger;
    }
  }
  &.warning {
    .risk-overview-detail-left > .aisc-widgets {
      background: #fff7e6 !important;
    }
    .risk-overview-info::after {
      background: $primary-warning;
    }
  }
  &.low {
    .risk-overview-detail-left > .aisc-widgets {
      background: #f2fbff !important;
    }
    .risk-overview-info::after {
      background: $primary-brand;
    }
  }
  &.good {
    .risk-overview-detail-left > .aisc-widgets {
      background: #edffed !important;
    }
    .risk-overview-info::after {
      background: $primary-success;
    }
  }
  &.excellent {
    .risk-overview-detail-left > .aisc-widgets {
      background: #edffed !important;
    }
    .risk-overview-detail-right {
      display: flex;
      align-items: center;
      .risk-overview-level {
        margin-top: 0;
      }
      .risk-overview-list {
        display: none;
      }
    }
  }

  &-extra {
    display: flex;
    align-items: center;
    line-height: 20px;
  }

  &-tips {
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 14px;
    color: $gray-06;
    display: flex;
    justify-content: flex-end;
  }

  &-detail {
    display: flex;
    height: 400px;
    border: 1px solid $gray-02;
    &-left {
      flex: 1;
      min-width: 50%;
      position: relative;
      border-radius: 4px;
      &:hover {
        .risk-overview-detail-left-overlay.loading {
          display: flex;
        }
      }
      &-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 4px;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 2;
        background: rgba(255, 255, 255, 0.8);
        transition: all 0.1s ease-out;
        &.loading {
          display: flex;
          .loading-icon {
            color: $primary-brand;
            font-size: 36px;
          }
        }
      }
    }
    &-right {
      flex: 1;
      min-width: 50%;
      padding: 16px 20px;
      &-content {
        margin: 0 auto;
      }
    }
  }

  &-level {
    margin-top: 16px;
    font-size: 14px;
    line-height: 20px;
    color: $gray-06;
    &-title {
      &-strong {
        line-height: 34px;
        font-size: 24px;
        color: $gray-08;
        font-weight: 500;
        margin-right: 8px;
      }
    }

    &-desc {
      margin-top: 12px;
    }
  }

  &-list {
    margin-top: 24px;
    overflow-y: auto;
    max-height: 262px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    &::-webkit-scrollbar {
      display: none; /* Chrome/Safari/Webkit */
    }
    background: /* Shadow covers */ linear-gradient(#fff 100%, rgba(255, 255, 255, 0)),
      linear-gradient(rgba(255, 255, 255, 0), #f7f7f7 70%) 0 100%,
      /* Shadows */ radial-gradient(50% 0, farthest-side, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
      radial-gradient(50% 100%, farthest-side, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) 0 100%;
    background: /* Shadow covers */ linear-gradient(#fff 100%, rgba(255, 255, 255, 0)),
      linear-gradient(rgba(255, 255, 255, 0), #fff 100%) 0 100%,
      /* Shadows */ radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
      radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    /* Opera doesn't support this in the shorthand */
    background-attachment: local, local, scroll, scroll;
    &-item {
      margin-top: 16px;
      font-size: 14px;
      line-height: 20px;
      color: $gray-06;
      &:first-child {
        margin-top: 0;
      }

      &-title {
        margin-bottom: 8px;
      }
    }
  }

  // 右侧每条规则
  &-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    margin-right: 16px;
    padding: 0 16px 0 32px;
    position: relative;
    &::after {
      content: '';
      position: absolute;
      top: 50%;
      margin-top: -4px;
      left: 12px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: $gray-02;
    }
    &:hover {
      background-color: $gray-02;
    }
    &-label {
      flex: 1;
      color: $gray-08;
      max-width: calc(100% - 70px);
    }
    &-btn {
      flex-shrink: 0;
      margin-left: 12px;
    }
  }

  // 分析
  &-analysis {
    margin-top: 40px;
    margin-bottom: 20px;
    &-list {
      position: relative;
      &-billing {
        position: absolute;
        top: 0;
        background: rgba(234, 231, 231, 0.45);
        width: 100%;
        height: 100%;
        &-title {
          font-size: 24px;
          font-weight: bold;
          padding-top: 80px;
          text-align: center;
          color: var(--gray-08, #262626);
        }
        &-desc {
          color: #1b9aee;
          color: var(--primary-brand, #1b9aee);
          cursor: pointer;
          padding: 20px 0;
          text-align: center;
        }
      }
    }
    &-title {
      font-weight: 500;
      font-size: 18px;
      line-height: 24px;
      color: $gray-08;
    }

    &-item-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      &:last-child {
        margin-bottom: 0;
      }
    }

    &-item {
      display: flex;
      flex: 1;
      align-items: center;
      height: 118px;
      background: #fff;
      border: 1px solid $gray-02;
      border-radius: 4px;
      cursor: pointer;
      &:hover {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
      }
      &:last-child {
        margin-left: 20px;
      }
      &-img {
        width: 44%;
        text-align: center;
        img {
          width: 60px;
          height: 60px;
        }
      }

      &-info {
        &-count {
          line-height: 38px;
          font-weight: 500;
          font-size: 28px;
          color: $gray-08;
        }
        &-desc {
          font-size: 14px;
          line-height: 20px;
          color: $gray-06;
          margin-top: 4px;
        }
      }
    }
  }

  // 雷达图的label样式
  &-wradar-label {
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    &-title {
      color: $gray-08;
      font-size: 14px;
      line-height: 20px;
      font-weight: 500;
    }
    &-desc {
      color: $gray-06;
      font-size: 12px;
      line-height: 20px;
    }
  }
  .g-label:first-child &-wradar-label {
    position: relative;
    top: -10px;
  }
}
